<?php session_start();
	include 'mysql.php';
	$tid=$_SESSION['usercode'];
	$sid=$_POST['sid'];
	$family=$_POST['family'];
	$lable=$_POST['lable'];

	echo $family.$lable.$sid;
	$count=$_POST['num'];
	echo $count;
	$notice=$_POST['notice'];
	echo $notice;
	$m=date("G")-5;
	$m1=date("G");
	$timest=date("y-m-d")." ".$m.":".date("i:s");
	$timelt=date("y-m-d")." ".$m1.":".date("i:s");
	$etime=date("y-m-d G:i:s");
	$sql="UPDATE bookmanage SET `count`='$count',notice='$notice',teachid='$tid',family='$family',lable='$lable' WHERE studentid='$sid' and teachid is NULL";
	$res=mysql_query($sql);
	if ($res){
	header("Location:../view/workattend.php");}
?>
